package dk.kapetanovic.jaft.transaction.fac;

import java.io.File;
import java.io.FileFilter;

public class JournalFilter implements FileFilter {

	private String start = "transaction_journal";
	private String extension = ".dat";
	
	@Override
	public boolean accept(File file) {
		String name = file.getName();
		return name.startsWith(start) && name.endsWith(extension);
	}
}
